home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / update / regexp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-28  |  631 b   |  28 lines

  1. /*
  2.  * Definitions etc. for regexp(3) routines.
  3.  *
  4.  * Caveat:  this is V8 regexp(3) [actually, a reimplementation thereof],
  5.  * not the System V one.
  6.  */
  7.  
  8. #ifndef _REGEXP
  9. #define _REGEXP 1
  10.  
  11. #define NSUBEXP  10
  12. typedef struct regexp {
  13.     char *startp[NSUBEXP];
  14.     char *endp[NSUBEXP];
  15.     char regstart;        /* Internal use only. */
  16.     char reganch;        /* Internal use only. */
  17.     char *regmust;        /* Internal use only. */
  18.     int regmlen;        /* Internal use only. */
  19.     char program[1];    /* Unwarranted chumminess with compiler. */
  20. } regexp;
  21.  
  22. extern regexp *regcomp();
  23. extern int regexec();
  24. extern void regsub();
  25. extern void regerror();
  26.  
  27. #endif /* REGEXP */
  28.